package com.lingkang.top.seesister;

import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

public class Test {
    public static void main(String[] args) {
        String res="{\n" +
                "    \"code\": 0,\n" +
                "    \"message\": \"OK\",\n" +
                "    \"data\": {\n" +
                "        \"id\": 80,\n" +
                "        \"className\": \"美女\",\n" +
                "        \"type\": \"性感美女\",\n" +
                "        \"alt\": \"满足你对巨乳的幻想 绝色尤物易阳饱满双峰令人血脉喷张' wid\",\n" +
                "        \"url\": \"https://i5.meizitu.net/thumbs/2019/09/192414_29c43_236.jpg\"\n" +
                "    }\n" +
                "}";
        JsonObject jsonObject= (JsonObject) new JsonParser().parse(res);
        System.out.println(jsonObject.get("data").getAsJsonObject().get("url"));
    }
}
